|
![](/i/fill.gif) |
In article <39a24878@news.povray.org> , Warp <war### [at] tag povray org> wrote:
> : True, but guess which solution runs much faster? Growing the stack rarely
> : causes much overhead, while each call to malloc will take noticeable time.
>
> But you don't have to call malloc() for each item you want to put on the
> "stack". You can reserver space for more than one item at once.
Yes, if you have the memory resources to burn. And POV-Ray isn't exactly
the most memory efficient program already. Or, in general, imagine the
programmers of the embedded system in your mobile phone would use resources
that carelessly.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |